
using System;
using System.Collections.Generic;

namespace Ack
{
	public interface ByteSupplier
	{
		bool HasMoreBytes();
		byte ReadByte();
	}
	
	public class DummySupplier : ByteSupplier
	{
		private List<byte> _list;
		private int _pos;

		public DummySupplier(List<byte> list)
		{
			_list = list;
			_pos = 0;
		}
		
		public bool HasMoreBytes ()
		{
			return _pos < _list.Count;
		}
		
		public byte ReadByte ()
		{
			return _list[_pos++];
		}		
	}	
	
}
